import request from "@/utils/request";


// 创建上架计划
export function addPulishProductProject(data) {
  return request({
    url: '/pulishProduct/autoPulishProductProject/addPulishProductProject',
    method: 'post',
    data
  })
}

// 获取自运营上架配置详情
export function queryProjectById(data) {
  return request({
    url: '/auto/pulishProduct/autoPulishProductProject/queryProjectById',
    method: 'get',
    params: data
  })
}

// 修改自运营上架配置
export function editPulishProject(data) {
  return request({
    url: '/auto/pulishProduct/autoPulishProductProject/editPulishProject',
    method: 'post',
    data
  })
}

// 修改上架配置状态
export function editPulishProjectStatus(data) {
  return request({
    url: '/auto/pulishProduct/autoPulishProductProject/editPulishProjectStatus',
    method: 'get',
    params: data
  })
}

// 查询上架任务数据
export function getPulishProductProjectTaskList(data) {
  return request({
    url: '/auto/pulishProduct/autoPulishProductProject/getPulishProductProjectTaskList',
    method: 'get',
    params: data
  })
}

// 获取类目下商品数量
export function queryStoreProductNumber(data) {
  return request({
    url: "/auto/pulishProduct/autoPulishProductProject/queryStoreProductNumberByInfo",
    method: 'post',
    data
  })
}

//上架失败类目列表
export function queryGroundCategoryList(data) {
  return request({
    url: "/auto/kjerp/erpAutoSellerStoreConfigErrorCategory/selectList",
    method: "get",
    params: data
  })
}

//上架失败类目列表
export function deleteGroundCategory(data) {
  return request({
    url: "/auto/kjerp/erpAutoSellerStoreConfigErrorCategory/deleteById",
    method: "get",
    params: data
  })
}
